//
//  AddBankCardViewController.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/6.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "AddBankCardViewController.h"
#import "AddBankCardViewModel.h"

@interface AddBankCardViewController ()
{
    AddBankCardViewModel *viewModel;
}
@end

@implementation AddBankCardViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"添加银行卡";
    viewModel = [[AddBankCardViewModel alloc] initWithViewToViewModel:self.groupedTableView theSuperView:self.view];
    kWeakSelf(self);
    viewModel.BlockKeepCard = ^(BankCardDetailModel * _Nullable deModel) {
        [weakself keepCard:deModel];
    };
}

- (void)keepCard:(BankCardDetailModel *)model
{
    if (self.BlockKeepCard) {
        self.BlockKeepCard(model);
    }
    [self.navigationController popViewControllerAnimated:YES];
}

@end
